#include "MyMinStack.h"
#include <iostream>

int main()
{
	int array[10] = {10,2,5,8,4,3,9,6,8,45};
	MyMinStack stack;
	for (int i=0;i<10;++i)
	{
		stack.push(array[i]);
		std::cout<<stack.getMin()<<std::endl;
	}

	while(!stack.isEmpty())
	{
		std::cout<<stack.pop()<<std::endl;
	}

	return 0;
}